package com.culturalCenter.dataCenter.service.user;

import com.culturalCenter.dataCenter.customEntity.user.CustomActivityStatistics;
import com.culturalCenter.dataCenter.entity.user.UserActivityCount;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserActivityCountService {

    /**
     * UserActivityCount分页查询
     *
     * @param page
     * @param size
     *
     * @return
     */
    PageInfo<UserActivityCount> findPage(int page, int size);

    /**
     * 删除UserActivityCount
     *
     * @param id
     */
    Integer delete(String id);

    /**
     * 修改UserActivityCount数据
     *
     * @param userActivityCount
     */
    Integer update(UserActivityCount userActivityCount);

    /**
     * 新增UserActivityCount
     *
     * @param userActivityCount
     */
    Integer add(UserActivityCount userActivityCount);

    /**
     * 根据ID查询UserActivityCount
     *
     * @param id
     *
     * @return
     */
    UserActivityCount findById(String id);

    /**
     * 查询所有UserActivityCount
     *
     * @return
     */
    List<UserActivityCount> findAll(UserActivityCount userActivityCount);

    /**
     * 获取用户活动/志愿者记录统计数据
     *
     * @param userId
     *
     * @return
     */
    CustomActivityStatistics findByUserIdAndType(String userId);

}
